package com.yjx.gulimall.common.vo;

import com.yjx.gulimall.common.valid.QueryGroup;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @author zhuyingcoder
 * @version 1.0
 * @date 2022-03-11 11:09
 */
@Data
public class QueryVO {

    @Pattern(regexp = "^[1-9][0-9]+$",message = "输入的数据不合法", groups = {QueryGroup.class})
    private int page;
    @Pattern(regexp = "^[1-9][0-9]+$",message = "输入的数据不合法",groups = {QueryGroup.class})
    private int limit;
    
    private String key;
}
